// 全局路由
const globalRoute = [
	{
		path: '/home',
		name: 'Home',
		meta: { title: '首页', icon: 'ios-home' },
		isleaf: 1,
		component: () => import('../views/home')
	},
	// {
	// 	path: 'vxeTemplateConfig',
	// 	name: 'VxeTemplateConfig',
	// 	meta: { title: '表格表单设计' },
	// 	component: () => import('@/views/test-page/template-config/index')
	// },
	{
		path: '/baseComponents',
		name: 'BaseComponents',
		redirect: { name: 'ShButton' },
		meta: { title: '基础组件', icon: 'ios-document' },
		children: [
			{
				path: 'sh-button',
				name: 'ShButton',
				meta: { title: '按钮、输入框（继承自vxe）' },
				isleaf: 1,
				component: () => import('../views/base/button.vue')
			},
			{
				path: 'sh-alert',
				name: 'ShAlert',
				meta: { title: '警告提示' },
				isleaf: 1,
				component: () => import('../views/base/alert.vue')
			},
			{
				path: 'sh-card',
				name: 'ShCard',
				meta: { title: '卡片' },
				isleaf: 1,
				component: () => import('../views/base/card.vue')
			},
			{
				path: 'sh-grid',
				name: 'ShGrid',
				meta: { title: '栅格' },
				isleaf: 1,
				component: () => import('../views/base/grid.vue')
			},
			{
				path: 'sh-corner',
				name: 'ShCorner',
				meta: { title: '壁角' },
				isleaf: 1,
				component: () => import('../views/base/corner.vue')
			},
			{
				path: 'sh-count-to',
				name: 'ShCountTo',
				meta: { title: '计数器' },
				isleaf: 1,
				component: () => import('../views/base/count-to.vue')
			},
			{
				path: 'sh-empty',
				name: 'ShEmpty',
				meta: { title: '空状态' },
				isleaf: 1,
				component: () => import('../views/base/empty.vue')
			},
			{
				path: 'sh-header',
				name: 'ShHeader',
				meta: { title: '页头' },
				isleaf: 1,
				component: () => import('../views/base/header.vue')
			},
			{
				path: 'sh-noticebar',
				name: 'ShNoticebar',
				meta: { title: '通知栏' },
				isleaf: 1,
				component: () => import('../views/base/noticebar.vue')
			},
			{
				path: 'sh-result',
				name: 'ShResult',
				meta: { title: '处理结果' },
				isleaf: 1,
				component: () => import('../views/base/result.vue')
			},
			{
				path: 'sh-tag',
				name: 'ShTag',
				meta: { title: '标签' },
				isleaf: 1,
				component: () => import('../views/base/tag.vue')
			},
			{
				path: 'sh-progress',
				name: 'ShProgress',
				meta: { title: '进度条' },
				isleaf: 1,
				component: () => import('../views/base/progress.vue')
			},
			{
				path: 'sh-notification',
				name: 'ShNotification',
				meta: { title: '通知提醒' },
				isleaf: 1,
				component: () => import('../views/base/notification.vue')
			},
			{
				path: 'sh-poptip',
				name: 'ShPoptip',
				meta: { title: '气泡提示' },
				isleaf: 1,
				component: () => import('../views/base/poptip.vue')
			},
			{
				path: 'sh-drawer',
				name: 'ShDrawer',
				meta: { title: '抽屉' },
				isleaf: 1,
				component: () => import('../views/base/drawer.vue')
			},
			{
				path: 'sh-badge',
				name: 'ShBadge',
				meta: { title: '徽标' },
				isleaf: 1,
				component: () => import('../views/base/badge.vue')
			},
			{
				path: 'sh-tabs',
				name: 'ShTabs',
				meta: { title: '标签页' },
				isleaf: 1,
				component: () => import('../views/base/tabs.vue')
			},
			{
				path: 'sh-image',
				name: 'ShImage',
				meta: { title: '图片' },
				isleaf: 1,
				component: () => import('../views/base/image.vue')
			},
			{
				path: 'sh-water-mark',
				name: 'ShWaterMark',
				meta: { title: '水印' },
				isleaf: 1,
				component: () => import('../views/base/water-mark.vue')
			},
			{
				path: 'sh-calendar',
				name: 'ShCalendar',
				meta: { title: '日历' },
				isleaf: 1,
				component: () => import('../views/base/calendar.vue')
			}
		]
	},
	{
		path: '/highComponents',
		name: 'HighComponents',
		redirect: { name: 'ShCodeEditor' },
		meta: { title: '高级组件', icon: 'ios-flag' },
		children: [
			{
				path: 'sh-code-editor',
				name: 'ShCodeEditor',
				meta: { title: '代码编辑器' },
				isleaf: 1,
				component: () => import('../views/high/code-editor.vue')
			},
			{
				path: 'sh-form',
				name: 'ShForm',
				meta: { title: '表单' },
				isleaf: 1,
				component: () => import('../views/high/form.vue')
			},
			{
				path: 'sh-list',
				name: 'ShList',
				meta: { title: '列表' },
				isleaf: 1,
				component: () => import('../views/high/list.vue')
			},
			{
				path: 'sh-query',
				name: 'ShQuery',
				meta: { title: '高级搜索' },
				isleaf: 1,
				component: () => import('../views/high/query.vue')
			},
			{
				path: 'sh-split',
				name: 'ShSplit',
				meta: { title: '区域分割' },
				isleaf: 1,
				component: () => import('../views/high/split.vue')
			},
			{
				path: 'sh-table',
				name: 'ShTable',
				meta: { title: '表格' },
				isleaf: 1,
				component: () => import('../views/high/table.vue')
			},
			{
				path: 'sh-toolbar',
				name: 'ShToolbar',
				meta: { title: '工具栏' },
				isleaf: 1,
				component: () => import('../views/high/toolbar.vue')
			},
			{
				path: 'sh-tree',
				name: 'ShTree',
				meta: { title: '下拉树' },
				isleaf: 1,
				component: () => import('../views/high/tree.vue')
			},
			{
				path: 'sh-upload',
				name: 'ShUpload',
				meta: { title: '上传' },
				isleaf: 1,
				component: () => import('../views/high/upload.vue')
			},
			{
				path: 'sh-date',
				name: 'ShDate',
				meta: { title: '日期选择' },
				isleaf: 1,
				component: () => import('../views/high/date.vue')
			},
			{
				path: 'sh-preview',
				name: 'ShPreview',
				meta: { title: 'office预览' },
				isleaf: 1,
				component: () => import('../views/high/preview.vue')
			}
		]
	},
	{
		path: '/',
		redirect: { name: 'Home' }
	}
]

export default globalRoute
